<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" />
<xsl:template match="/">
<html>
	<head>
		<title>Traitement des commandes</title>
		<link rel="stylesheet" type="text/css" href="../css/page.css" />
    </head>
<body>

<table class="table">
  <tr class="tableRow">
    <td class="tableCell" id="left_col"><div class="min_size"></div></td>
    
     <!-- conteneur -->
    <td class="tableCell" id="conteneur">
      <div class="min_size"></div>
      <!-- header -->
      <div id="header">
        <div id="titre">Pizza Online</div>
        <hr />
        <div id="accessibilite"><!--liens accessibilité-->
          <a href="../index.jsp" accesskey="1">Accueil du site</a> | <a href="#menu">Aller au menu</a> | <a href="#texte" accesskey="s">Aller au texte</a>
        </div>
      </div>
      <!-- fin header-->
      
      <!-- gauche -->
      <div id="left">
      </div>
      
      <!-- droit -->
      <div id="right">
      </div>

<div class="blocTexte" align="center">
<p align="center"><h3>Traitement des commandes</h3></p>
<hr/>
<form action="../TraitementCommande" method="post">
	<table align="center">
		<tr>
			<th>Commande</th>
			<th>Client</th>
			<th>Montant</th>
			<th>Description</th>
			<th>Traitement</th>
		</tr>
		<xsl:apply-templates/>
	</table>		
</form>
</div>
</td>

<td class="tableCell" id="right_col"><div class="min_size"></div></td>
</tr>
</table>

</body>
</html>
</xsl:template>

<xsl:template match="ROWSET/ROW">
	<tr>
		<td><xsl:value-of select="id_commande"/></td>
		<td><xsl:value-of select="id_client"/></td>
		<td><xsl:value-of select="montant"/></td>
		<td><xsl:value-of select="description"/></td>
		<td>
			<a>
				<xsl:attribute name="href">../traitementCommande.jsp?id=<xsl:value-of select="id_commande"/></xsl:attribute>
				Traiter la commande
			</a>
		</td>
	</tr>
</xsl:template>
</xsl:stylesheet>